ActionController::Routing::Routes.draw do |map|
    map.connect '', :controller => 'index'
    map.connect 'tag/:name', :controller => 'tag', :action => 'show_urls'
    map.connect 'url/:url_id/', :controller => 'url', :action => 'show',
        :requirements => {:url_id => /\d+/}
    map.connect 'url/:url_id/users', :controller => 'url', :action => 'users',
        :requirements => {:url_id => /\d+/}
    map.connect 'u/:username', :controller => 'u', :action => 'show'
    map.connect ':controller/:action/:id'
    map.connect '*anything', :controller => 'error'
end
